<?php
$con=mysqli_connect($servername,$username,$password,$dbname);
$result_safe = mysqli_query($con,"SELECT * FROM star_php_website WHERE id='$webid'");
if($result_safe->num_rows == 0){
    $tools = new bluestar_tools();
    $tools->https(404);
    exit("");
    //exit("<h1 style='color:red;'>此站点被站长删除！</h1>");
}else{
    while($row_safe = mysqli_fetch_array($result_safe)){
        if($row_safe["status"] == 0){
            //exit("<h1 style='color:red;'>此站点被站长关闭！</h1>");
            $tools = new bluestar_tools();
            $tools->https(503);
            exit("");
        }
    }
}
?>